package com.cy.pj.brand.pojo;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BrandDao{
    List<Brand> findBrands(String name);
    @Delete("delete from tb_brand where id=#{id}")
    int deleteById(Integer id);
    int insertBrand(Brand brand);
}
